package com.xianggu.springBoot;

import com.xianggu.springBoot.annotation.XiangGuConditionOnClass;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author chengjy
 * @date 2025/3/5
 */
@Configuration
public class WebServiceAutoConfiguration {
    @Bean
    @XiangGuConditionOnClass("org.eclipse.jetty.server.Server")
    public JettyWebService jettyServer(){
        return new JettyWebService();
    }

    @Bean
    @XiangGuConditionOnClass("org.apache.catalina.startup.Tomcat")
    public TomcatWebService tomcatServer(){
        return new TomcatWebService();
    }
}
